package com.logistics.service;

import com.logistics.common.Result;
import com.logistics.entity.WarehouseStorage;
import java.util.List;

public interface WarehouseStorageService {
    /**
     * 创建存储记录
     */
    void create(WarehouseStorage storage);
    
    /**
     * 根据ID获取存储记录
     */
    WarehouseStorage getById(Long id);
    
    /**
     * 根据仓库ID获取存储记录
     */
    List<WarehouseStorage> listByWarehouseId(Long warehouseId);
    
    /**
     * 根据订单号获取存储记录
     */
    List<WarehouseStorage> listByOrderNo(String orderNo);
    
    /**
     * 获取所有存储记录
     */
    List<WarehouseStorage> list();
    
    /**
     * 搜索存储记录
     */
    Result<List<WarehouseStorage>> search(String orderNo, Long warehouseId, String status);
    
    /**
     * 更新存储记录状态
     */
    void updateStatus(Long id, String status);
    
    /**
     * 删除存储记录
     */
    void delete(Long id);
} 